package com.platform.coreentity.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Objects;

/**
 * describe:用户组用户关联表
 *
 * @author rainly
 * @date 2019/07/23
 * @time 16:36
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "sys_usergroup_user", schema = "platform")
public class SysUsergroupUserEntity {

    @Id
    @Column(name = "id", nullable = false, length = 50)
    private String id;

    @Column(name = "guserid", nullable = false, length = 50,columnDefinition = "varchar(50) COMMENT '用户组id'")
    private String guserid;

    @Column(name = "userid", nullable = false, length = 50,columnDefinition = "varchar(50) COMMENT '用户id'")
    private String userid;
}
